package com.qf.service.impl;

import com.qf.dao.OrderDetailDao;
import com.qf.dao.impl.OrderDetailDaoImpl;
import com.qf.entity.OrderDetail;
import com.qf.service.OrderDetailService;
import com.qf.utils.DruidUtils;
import org.apache.commons.dbutils.QueryRunner;

import java.sql.SQLException;

/**
 * @author 10202
 * @version V1.0
 * @Project xiaomi
 * @Package com.qf.service.impl
 * @Date 2023/4/14 22:31
 */
public class OrderDetailServiceImpl implements OrderDetailService {
    private OrderDetailDao orderDetailDao=new OrderDetailDaoImpl();
    @Override
    public void add(OrderDetail orderDetail) {
        orderDetailDao.addOrderDetail(orderDetail);
    }

    @Override
    public OrderDetail queryOrderDetail(String oid) {
        return orderDetailDao.queryOrderDetail(oid);
    }
}
